package day10.task;

import java.util.Arrays;
import java.util.Scanner;

public class StringQueuing {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        String[] s1 = s.split(" ");
//        Arrays.sort(s1);
//        for (String s2 : s1) {
//            System.out.print(s2+" ");
        int min = 0;//选择排序写一下
        String temp = null;
        for (int i = 0; i < s1.length-1; i++) {
            min = i;
            for (int j = i + 1; j < s1.length; j++) {
                if (s1[j].compareTo(s1[min]) < 0)
                    min = j;
            }
            if (min != i) {
                temp = s1[i];
                s1[i] = s1[min];
                s1[min] = temp;

            }
        }
        for (String s2 : s1) {
            System.out.print(s2 + " ");
        }
    }
}